<template>
    <div class="account-info-wrapper">
        <div style="border:1px solid #e9eaec">
        <Card>
            <p slot="title" class="sub-title">
                <span class="account-type">财务信息</span>
            </p>

            <kv-wrap
                v-if="datas"
                label-width="120"
                align="left"
                padding="20px">

                <kv-item label="是否开票:">
                    {{datas.is_open_invoice ? '是' : '否'}}
                </kv-item>
                <kv-item label="发票类型:">
                    {{datas.finance_info.invoice_type === 1 ? '增值税普通发票' : datas.finance_info.invoice_type === 2 ? '增值税专用发票' : '未设置'}}
                </kv-item>
                <kv-item label="开票企业名称:">
                    {{datas.finance_info.company_name || '未设置'}}
                </kv-item>
                <kv-item label="纳税人识别号:">
                    {{datas.finance_info.tax_no || '未设置'}}
                </kv-item>
                <kv-item label="地址:">
                    {{datas.finance_info.address || '未设置'}}
                </kv-item>
                <kv-item label="电话:">
                    {{datas.finance_info.phone || '未设置'}}
                </kv-item>
                <kv-item label="开户行:">
                    {{datas.finance_info.bank || '未设置'}}
                </kv-item>
                <kv-item label="账号:">
                    {{datas.finance_info.account || '未设置'}}
                </kv-item>

            </kv-wrap>
        </Card>
        </div>
    </div>
</template>

<script>
export default {
  name: 'finace-info',
  props: {
    datas: Object
  }
}
</script>
